-- GENERATED SPELL FOR [Skeletal Waiter] --


function spell0_16415(pUnit, Event) --@Brittle Bones,n/a--
pUnit:FullCastSpellOnTarget(32441,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16415', 671, 1)
end

function Sorts_16415(pUnit, Event)
local choix_sorts_16415 = math.random(0, 0)
if choix_sorts_16415 == 0 then
pUnit:RegisterEvent('spell0_16415', 1, 1)
end
end

function mob16415_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16415', math.random(1500, 3000), 1)
end

function mob16415_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16415_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16415_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16415, 1, 'mob16415_Action')
RegisterUnitEvent(16415, 2, 'mob16415_Leave')
RegisterUnitEvent(16415, 3, 'mob16415_Kill')
RegisterUnitEvent(16415, 4, 'mob16415_Die')
